<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="view/default/style/basic.css" />
<link type="text/css" rel="stylesheet" href="view/default/style/member.css" />
<script type="text/javascript" src="view/default/js/ajax.js"></script>
<script type="text/javascript" src="view/default/js/member.js"></script>
<title>在线商城会员中心</title>
</head>
<body>
{include file="default/public/header.html"}
<div id="sait">
    当前位置：<a href="./">首页</a> &gt; 商品评价
</div>

{include file="default/public/member_sidebar.html"}
<form method="post">
<div id="main">
    <h2>商品评价</h2>
    <div class="commend">
        <a href="?a=details&navid={$oneGoods.nav}&goodsid={$oneGoods.id}" target="_blank"><img src="{$oneGoods.thumbnail_small}" /></a>
        <input type="hidden" name="goodsid" value="{$smarty.get.goodsid}" />
        <input type="hidden" name="orderid" value="{$smarty.get.orderid}" />
        <input type="hidden" name="attr" value="{foreach from=$oneGoods.attr key=key item=value}{$key}:{foreach from=$value key=k item=v}{$v} {/foreach};{/foreach}" />
        <dl>
            <dt><a href="?a=details&navid={$oneGoods.nav}&goodsid={$oneGoods.id}" target="_blank">{$oneGoods.name}</a></dt>
            <dd>
            {foreach from=$oneGoods.attr key=key item=value}
                {$key}:
                {foreach from=$value key=k item=v}
                    {$v}
                {/foreach};
            {/foreach}
            </dd>
            {if $oneCommend[0]}
            <dd style="font-size:15px;color:#360;">您已经参与了评论，以下是您上一次的评价内容：</dd>
            <dd>评分：
                {if $oneCommend[0]->star == 5}<span class="star">★★★★★</span>{/if}
                {if $oneCommend[0]->star == 4}<span class="star">★★★★</span>{/if}
                {if $oneCommend[0]->star == 3}<span class="star">★★★</span>{/if}
                {if $oneCommend[0]->star == 2}<span class="star">★★</span>{/if}
                {if $oneCommend[0]->star == 1}<span class="star">★</span>{/if}
            </dd>
            <dd>内容：{$oneCommend[0]->content}</dd>
            {if $oneCommend[0]->re_content}
            <dd style="color:red;">商家回复：{$oneCommend[0]->re_content}</dd>
            {/if}
            {else}
            <dd>评分:<input type="radio" name="star" value="5" checked="checked"/><span class="star">★★★★★</span>
                    <input type="radio" name="star" value="4"/><span class="star">★★★★</span>
                    <input type="radio" name="star" value="3"/><span class="star">★★★</span>
                    <input type="radio" name="star" value="2"/><span class="star">★★</span>
                    <input type="radio" name="star" value="1"/><span class="star">★</span>
            </dd>
            <dd><textarea name="content"></textarea></dd>
            <dd><input type="submit" name="send" value="发表评价" style="cursor:pointer;"/>　<a href="?a=member&m=order_details&id={$smarty.get.orderid}">[返回订单]</a></dd>
            {/if}    
        </dl>
    </div>
</div>
</form>
{include file='default/public/footer.html'}
</body>
</html>